import request from '@/utils/request'

export const getTimeOrder = (start, end, innerCode) => {
  return request({
    url: '/order-service/report/orderCount',
    params: {
      start,
      end,
      innerCode
    }
  })
}

export const getAmount = (start, end, innerCode) => {
  return request({
    url: '/order-service/report/orderAmount',
    params: {
      start,
      end,
      innerCode
    }
  })
}

export const getReplenishment = (start, end, innerCode) => {
  return request({
    url: `/task-service/task/supplyCount/${innerCode}/${start}/${end}`
  })
}

export const getRepairCount = (start, end, innerCode) => {
  return request({
    url: `/task-service/task/repairCount/${innerCode}/${start}/${end}`
  })
}

export const getSkuCollect = (start, end, innerCode) => {
  return request({
    url: `/order-service/report/skuCollect/${innerCode}/${start}/${end}`
  })
}
